import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [

  {
    path: "/",
    name: "yindao",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/yindao"),
  },

  {
    path: "/login",
    name: "login",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/login"),
  },


  {
    path: "/home",
    name: "home",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home"),
      children:[
        {
          path: "/quanzi",
          name: "quanzi",
          component: () =>
            import(/* webpackChunkName: "about" */ "../pages/home/quanzi"),
        },
        {
          path: "/shou",
          name: "shou",
          component: () =>
            import(/* webpackChunkName: "about" */ "../pages/home/shou"),
        },
        
  {
    path: "/xunyi",
    name: "xunyi",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/xunyi"),
  },
  {
    path: "/xiaoxi",
    name: "xiaoxi",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/xiaoxi"),
  },
  {
    path: "/my",
    name: "my",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/my"),
  },

      ]
  },


  
  {
    path: "/sou",
    name: "sou",
    component: () =>
      import(/* webpackChunkName: "about" */ "../components/sousuo.vue"),
  },
  {
    path: "/ybbk",
    name: "ybbk",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/ybbk"),
  },
  {
    path: "/fysc",
    name: "fysc",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/fysc"),
  },
  {
    path: "/fyzs",
    name: "fyzs",
    component: () =>
      import(/* webpackChunkName: "about" */ "../pages/home/fyzs"),
  },

];

const router = new VueRouter({
  routes,
});

export default router;
